package com.yt.compent;

import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringApplication {
	
	ApplicationContext context;
	@Before
	public void before(){
		context = new ClassPathXmlApplicationContext("aop.xml");
	}
	
	@Test
	public void demo11(){
		ComDemo com = (ComDemo) context.getBean("comDemo");
		com.testAnnontation();
	}
}
